package main

import "fmt"

func main() {
	a := 100
	b := 200

	fmt.Println(a)

	fmt.Println(b)

	swap(&a, &b)
	fmt.Println(a)
	fmt.Println(b)
}

func swap(x *int, y *int) {
	*x, *y = *y, *x
}
